package com.yuanye.beans.controller;

import com.yuanye.beans.Component.StudentComponent;
import com.yuanye.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author liuyandeng
 * @date 2023/7/18
 * @Description
 */

@Controller
public class StuedntControllerA {

    @Autowired
    private Student student;

    public Student getStudent() {
        System.out.println("ControllerA 中 Student："+ student);
        System.out.println("修改 student 信息");
        student.setPassword("456");
        student.setName("python");
        student.setId(2);
        return student;
    }
}
